package net.xiduth.game.player.dialogues.tutorial;

import net.xiduth.game.player.dialogues.Dialogue;

public class Groats extends Dialogue {

@Override
	public void start() {
	if (!player.isCook()) {
			sendNPCDialogue(3807, 9827,
					"Baby I cant talk right now, im busy.");
		} else {
			sendNPCDialogue(3807, 9827,
					"What is it sweety?");
		}	
	}
	
	@Override
	public void run(int interfaceId, int componentId) {
		switch (stage) {
		case -1:
			if (!player.isCook()) {
				sendPlayerDialogue(9827, "Sorry about that.");
				stage = 69;
			} else {
				sendPlayerDialogue(9827, "The cook told me to come here.");
				stage = 0;
			}
			break;
		case 0:
			sendNPCDialogue(3807, 9827, "Ah yes, he told me about you.");
			stage = 1;
			break;
		case 1:
			sendNPCDialogue(3807, 9827, "Here is your milk hun.");
			player.getInventory().addItem(1927, 1);
			stage = 2;
			break;
		case 2:
			sendPlayerDialogue(9827, "Thanks!");
			stage = 69;
			break;
		case 69:
		end();
		break;
	}
}

	@Override
	public void finish() {
		// TODO Auto-generated method stub

	}
}